#!/bin/sh
dayTime=`date +%Y%m%d`

cliRoot='/data/wwwroot/g_biz/cli/IniData/WikiComment/syncObjRelateWikiToEs.php';
folder="/data/logs_bak/biz/syncObjRelateWikiToEs/"$dayTime
logRoot=$folder'/syncObjRelateWikiToEs.php_'
if [ ! -d "$folder" ]; then
  mkdir -p $folder
fi
for (( i = 0; i < 10; i++ )); do
		/usr/local/php/bin/php  $cliRoot $i> $logRoot$i'.log' &
		echo 'success';
	done